package biz.ezcom.spring.ioc.test;


import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import biz.ezcom.spring.ioc.pojo.Bean;

public class Client {
	private static ApplicationContext context; 
	
	@BeforeClass
	public static void setUpBeforeClass() {
		context = new ClassPathXmlApplicationContext("applicationContext-bean.xml");
	}
	@Test
	public void test(){
		Bean bean = (Bean) context.getBean("bean");
		System.out.print("[");
		for(String s : bean.getArray()){
			System.out.print(s + ", ");
		}
		System.out.println("]");
		
		System.out.println(bean.getList());
		System.out.println(bean.getSet());
		System.out.println(bean.getMap());
		System.out.println(bean.getProperties());
		
	}
	
}
